# Contributor: Roberto Oliveira <robertoguimaraes8@gmail.com>
# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com>
pkgname=zutils
pkgver=1.13
pkgrel=0
pkgdesc="A collection of utilities able to process any combination of compressed and uncompressed files transparently"
url="https://www.nongnu.org/zutils/zutils.html"
arch="all"
license="GPL-2.0-or-later"
subpackages="$pkgname-doc"
checkdepends="bzip2 gzip grep"
source="https://download.savannah.gnu.org/releases/zutils/zutils-$pkgver.tar.lz
	noconflict.patch
	"

build() {
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		CXXFLAGS="$CXXFLAGS"
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
d0decf5890b091845b8f1b6fa2541961e54be888ae0c6e54512b6296c9a3bcb2ff80d2b9a2f2644c4aa51cc8a4e0d031138a027d6a76b779fb5cd5c45aa24f14  zutils-1.13.tar.lz
646b7a9e9f9aa445d3e4c75457a4a57b4481ad9314a2b29ae7b82d7d90a50204ad8e0b0dc0e2bf47addd39d599bf681919e405e3159fe8420f3b0bb95c6e3517  noconflict.patch
"
